package cn.aplus.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.aplus.dao.UserMapper;
import cn.aplus.pojo.User;
import cn.aplus.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;
	
	@Override
	public User getUserById(int id) {
		return userMapper.selectByPrimaryKey(id);
	}

}
